//
//  GetNickName.m
//  Courses
//
//  Created by YiXuePxh on 15/5/6.
//  Copyright (c) 2015年 boyibang. All rights reserved.
//

#import "GetNickName.h"
#import "Request.h"
@implementation GetNickName
+(GetNickName* )getNickName{
    GetNickName* nickName;
    Request* request = [Request requestWithName:@"get_new_nickname"];
    Response* response = [request response];
    if (!response.result) {
        return Nil;
    }
    if (response.result) {
        nickName = response.content[@"nickname"];
    }
    return nickName;
}
@end
